package com.ddq.springboot_mongodb.service;

import com.ddq.springboot_mongodb.entity.User;
import com.ddq.springboot_mongodb.param.DeleteUserParam;
import com.ddq.springboot_mongodb.param.FindUserParam;

import java.util.List;
import java.util.Optional;


public interface Mongoservice {

    Optional<User> findUser(FindUserParam param);

    List<User> findAll();

    String updateUser(User param);

    String insertUser(User param);

    String deleteUser(DeleteUserParam param);
}
